﻿namespace FFF.Test.Application.Repositories.FW
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using Abp.Application.Services.Dto;
    using Abp.AutoMapper;
    using FFF.Test.Entity.FW;
    using FFF.Test.Entity.FW.View;

    /// <summary>
    /// 1.009 通过手机号修改密码(于大明)输入dto
    /// </summary>
    public class UpdatePwdByPhoneInDto
    {
        /// <summary>
        /// 电话号码
        /// </summary>
        [Required]
        [RegularExpression(@"^1([38]\d|5[0-35-9]|7[3678])\d{8}$", ErrorMessage = "手机号错误")]
        public string Cellphone { get; set; }

        /// <summary>
        /// 新密码
        /// </summary>
        [RegularExpression(@"\d{6,30}", ErrorMessage = "密码6位以上30位以下")]
        public string Password { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        [Required]
        public string Vercode { get; set; }
    }

    /// <summary>
    /// 1.009 通过手机号修改密码(于大明)输出dto
    /// </summary>
    public class UpdatePwdByPhoneOutDto
    {
    }
}
